tooldir = ${datadir}/@PACKAGE@/tools/geo_constraint
dist_tool_SCRIPTS = CalcForce.tcl 
dist_tool_DATA =  README
lib_LTLIBRARIES=libgeoconstraint.la
libgeoconstraint_la_SOURCES = TclGeoConstraint.cpp
AM_CXXFLAGS = -I../../src/include  ${TCL_INCLUDE_SPEC}
libgeoconstraint_la_LIBADD = ../../src/essential/libmbuild.a
check : check-am
	@cp .libs/libgeoconstraint.so* .
	@echo "Unpacking test cases ...."
	@echo "================================"
	@tar -zxvf test.tar.gz | tee .testfiles
	@echo "================================"
	@echo libgeoconstraint.so* >>.testfiles
	@echo *.dx >>.testfiles
	@echo "Running Test:"
	@./test.sh
clean : clean-am
	@[ -f .testfiles ] && { cat .testfiles | while read f;do echo "rm -f $$f"; rm -f $$f; done;}
install : install-am
	cp .libs/libgeoconstraint.so* ${tooldir}
	@$(MAKE) uninstall-libLTLIBRARIES
